/*
 Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 SPDX-License-Identifier: Apache-2.0
*/
@mixin dark-mode-only($selector: '') {
  @media not print {
    /* stylelint-disable selector-combinator-disallowed-list, selector-class-pattern */
    :global(#{$selector}.awsui-polaris-dark-mode) &,
    :global(#{$selector}.awsui-dark-mode) & {
      @content;
    }
  }
}
